import { getAction, deleteAction, putAction, postAction, httpAction, postFormData } from '@/api/manage'
const gateway = '/gateway/api'
const jnby = '/jnby-boot'
const queryOrder = (params) => postAction(gateway + '/admin/refund/checkOrder', params) // 新增售后单
const orderInfo = (params) => postAction(gateway + '/admin/refund/orderInfo', params) // 售后单页面信息
const orderList = (params) => postAction(gateway + '/admin/refund/list', params) // 售后管理列表
const auditAndCheckOrderInfo = (params) => postAction(gateway + '/admin/refund/auditAndCheckOrderInfo', params) // 审核或者查看售后单页面信息
const logisticsDetails = (params) => postAction(gateway + '/admin/refund/logisticsDetail', params) // 发货物流详情
const orderDetail = (params) => postAction(gateway + '/admin/refund/orderDetails', params) // 售后商品详情
const overRefund = (params) => postAction(gateway + '/admin/refund/overRefund', params) // 驳回
const save = (params) => postAction(gateway + '/admin/refund/save', params) // 保存接口
const setTrackingNumber = (params) => postAction(gateway + '/admin/refund/setTrackingNumber', params) // 修改快递单号
const logList = (params) => postAction(gateway + '/admin/refund/logList', params) // 操作日志
const resetTrack = (params) => postAction(gateway + '/admin/refund/resetTrack', params) // 重叫快递
const addRemark = (params) => postAction(gateway + '/admin/refund/addRemark', params) // 添加备注
const refundReason = (params) => postAction(gateway + '/admin/refund/refundReasonCondition', params) // 售后原因列表
export {
  queryOrder,
  orderList,
  logisticsDetails,
  orderDetail,
  save,
  setTrackingNumber,
  overRefund,
  logList,
  orderInfo,
  auditAndCheckOrderInfo,
  resetTrack,
  addRemark,
  refundReason
} 